#include<stdio.h>
typedef unsigned char *byte_pointer;
void show_bytes(byte_pointer start ,size_t len);
int main(int argc,char *argv[])
{
  show_int(5317);
  print_bin(5317);
  printf("\n");
  show_float(5317);
 
}
void show_bytes(byte_pointer start ,size_t len){
size_t i;
for(i=0;i<len;i++) printf("%.2x",start[i]);
printf("\n");
}
void show_int (int x){
show_bytes((byte_pointer) &x,sizeof(int));
}
void show_float(float x){
show_bytes((byte_pointer) &x,sizeof(float));
}
void show_pointer(void *x){
show_bytes((byte_pointer) &x,sizeof(void *));
}
void print_bin(int n)
{ int l=sizeof(n)*8;
int i;
if(i==0)
{printf("0");
return;
}
for(i=l-1;i>=0;i--)
{if(n&(1<<i)) break;}
for(;i>=0;i--)
printf("%d",(n&(1<<i))!=0);
}
